<%-- Pagina principal da aplicacao, a listagem de mercadorias. --%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div>
	<div style="border-bottom: 1px solid #E5E5E5;">
		<h4>Disciplinas</h4>
	</div>
	
	<table class="table table-hover">
		<thead>
			<tr>
				<th>Nome</th>
				<th>Semestre</th>
				<th></th>
			</tr>
		</thead>
		<c:forEach items="${atrDisciplinas}" var="disc">
			<tr>
				<td><a href="/web/aula?id=${disc.id}">${disc.nome}</a></td>
				<td>${disc.semestre}</td>
				<td>
					<a href="/web/editar-disciplina?id=${disc.id}" class="btn btn-small btn-warning">Editar</a>
					<a href="/web/vincular-alunos?id=${disc.id}" class="btn btn-small btn-warning">Alunos</a>
					<a href="/web/cadastrar-notas?disciplinaId=${disc.id}"><button class="btn btn-small btn-warning">Notas</button></a>
				</td>
			
			</tr>
		</c:forEach>
	</table>
	
	<a href="/web/adicionar-disciplina"><button class="btn btn-success">Adicionar disciplina</button></a>
</div>